package com.accountbook.tools;

import java.util.UUID;

public class DepUtil {

	/**
	 * 自动生成30位主键
	 * @return 30主键
	 */
	public static String createPrimaryId(){
		UUID uuid = UUID.randomUUID();
		String primaryId = uuid.toString().replace("-", "").substring(0, 30);
		return primaryId;
	}
}
